From c3a9a20839955a98266463c6fad4f0190feaccc2 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 22 May 2014 08:51:37 -0400 Subject: [PATCH] examples: Don't use gtk_application_add_accelerator It has been deprecated. --- examples/plugman.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/plugman.c b/examples/plugman.c index c074aa9393..3a4b7b3d0c 100644 --- a/examples/plugman.c +++ b/examples/plugman.c @@ -476,10 +476,11 @@ main (int argc, char **argv) { PlugMan *plug_man; int status; + const gchar *accels[] = { "F11", NULL }; plug_man = plug_man_new (); - gtk_application_add_accelerator (GTK_APPLICATION (plug_man), - "F11", "win.fullscreen", NULL); + gtk_application_set_accels_for_action (GTK_APPLICATION (plug_man), + "win.fullscreen", accels); status = g_application_run (G_APPLICATION (plug_man), argc, argv); g_object_unref (plug_man); -- 2.30.2